<!-- Button trigger modal -->
<button type="button" class="btn modal-trigger" data-toggle="modal" data-target="#createProjectModal2">
    <i class="fa fa-btn fa-plus"></i>
</button>

<!-- Modal -->
<div class="modal fade" id="createProjectModal2" tabindex="-1" role="dialog" aria-labelledby="createProjectModalLabel2" aria-hidden="true">
    <div class="modal-dialog" role="document">

        {!! Form::open(['route'=>'project.store', 'method'=>'POST', 'files'=>'true']) !!}
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="createProjectModalLabel2">新建项目</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    {{--{!! form::text('name', '$value', [$options]) !!} 参数名，参数值，bootstrap样式（可以不写）--}}
                    {!! Form::label('name', '项目名称：') !!}
                    {!! Form::text('name', '', ['class'=>'form-control']) !!}
                    {!! $errors->create->first('name', '<div class="alert alert-danger">:message</div>') !!}
                </div>
                <div class="form-group">
                    {!! Form::label('thumbnail', '项目缩略图：') !!}
                    {!! Form::file('thumbnail', ['class'=>'form-control-file']) !!}
                    {!! $errors->create->first('thumbnail', '<div class="alert alert-danger">:message</div>') !!}
                </div>
                {{--@if($errors->any())--}}
                    {{--<ul class="alert alert-danger">--}}
                        {{--@foreach($errors->all() as $erro)--}}
                            {{--<li>{{ $erro }}</li>--}}
                        {{--@endforeach--}}
                    {{--</ul>--}}
                {{--@endif--}}
                {{--@if($errors->create->any())--}}
                    {{--<ul class="alert alert-danger">--}}
                        {{--@foreach($errors->create->all() as $error)--}}
                            {{--<li>{{ $error }}</li>--}}
                        {{--@endforeach--}}
                    {{--</ul>--}}
                {{--@endif--}}
            </div>
            <div class="modal-footer">
                {!! Form::submit('新建项目', ['class'=>'btn btn-primary']) !!}
            </div>
        </div>
        {!! Form::close() !!}
    </div>
</div>